package game.groves.hollow;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Block{
	
	private int x;
	private int y;
	private int width;
	private int height;
	private Bitmap bitmap;
	private int speed;
	
	public Block (int x, int y, int width, int height, Bitmap bitmap){
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
		this.bitmap = bitmap;
	}
	
	public void update (int speed){
		this.x += speed;
		this.speed = speed;
	}
	
	public void draw (Canvas canvas){
		canvas.drawBitmap(bitmap, x, y, null);
	}
	
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}
	
	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

	public int getSpeed() {
		return speed;
	}
}